import axios from 'axios'
// let base = 'http://bt.langqiyun.com/bt/public/index.php'
// let base = 'http://192.168.0.120/git-bt/bt/public/index.php'
let base = 'http://btyyftp.gotoip3.com/bt/public/index.php'
// export const getHomeData = params => { return axios.post(`${base}/portal/api/index`, params, config).then(res => res.data)}
export const getHomeDataEn = params => { return axios.get(`${base}/portal/eng/mindex`).then(res => res.data) }
export const getProductDataEn = params => { return axios.get(`${base}/portal/eng/mobileList`).then(res => res.data) }
export const getProductListDataEn = params => { return axios.get(`${base}/portal/eng/mobileListAll`, { params: params }).then(res => res.data) }
export const getNewsDataEn = params => { return axios.get(`${base}/portal/eng/news`, { params: params }).then(res => res.data) }
export const getNewsSearchDataEn = params => { return axios.get(`${base}/portal/eng/search`, { params: params }).then(res => res.data) }
export const getJobDataEn = params => { return axios.get(`${base}/portal/eng/job`, { params: params }).then(res => res.data) }
export const getJobListDataEn = params => { return axios.get(`${base}/portal/eng/jobList`, { params: params }).then(res => res.data) }
export const getSchoolJobDataEn = params => { return axios.get(`${base}/portal/eng/schoolJob`, { params: params }).then(res => res.data) }
// 发展历程
export const getGrowDataEn = params => { return axios.get(`${base}/portal/eng/grow`, { params: params }).then(res => res.data) }
export const getAjaxGrowDataEn = params => { return axios.get(`${base}/portal/eng/ajax_grow`, { params: params }).then(res => res.data) }
// 产业
export const getFourNineDataEn = params => { return axios.get(`${base}/portal/eng/fourNine`, { params: params }).then(res => res.data) }
// 简介
export const getCliquesDataEn = params => { return axios.get(`${base}/portal/eng/clique`, { params: params }).then(res => res.data) }
// 详情
export const getInfoDataEn = params => { return axios.get(`${base}/portal/eng/newsInfo`, { params: params }).then(res => res.data) }
export const getProductInfoDataEn = params => { return axios.get(`${base}/portal/eng/productInfo`, { params: params }).then(res => res.data) }
export const getCultureDataEn = params => { return axios.get(`${base}/portal/eng/culture`, { params: params }).then(res => res.data) }
// 研发中心
export const getResearchDataEn = params => { return axios.get(`${base}/portal/eng/research`, { params: params }).then(res => res.data) }
// 联系我们
export const getChatUsDataEn = params => { return axios.get(`${base}/portal/Eng/chatUs`, { params: params }).then(res => res.data) }
